package com.spic.system.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD})
@Constraint(validatedBy = {RangeValidator.class})
public @interface Range {
    int min() default 20;

    int max() default 100;

    String message();

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};


}
